import Vue from 'vue'
import Router from 'vue-router'
import Login from '../pages/login'
import index from '../pages/index'
import UserInfo from '../components/userinfo'
import User from '../pages/user'
Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', name: 'index', component: index },
    { path: '/login',name: 'login',component: Login},
    { path: '/userinfo',name: 'userinfo',component: UserInfo },
    { path:'/user',name:'user',component:User}
  ]
})
